package com.ionehe.group.common.uaa.ex.application.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ionehe.group.common.uaa.ex.dto.LongList2LongString;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * Copyright (c) 2020 ionehe.com
 * Date: 2020/11/24
 * Time: 下午05:25
 *
 * @author 2020年 <a href="mailto:a@ionehe.com">秀</a>
 */
@Data
@ApiModel("套餐修改添加类")
public class SetMealVO {
    /**
     * 套餐id
     */
    @ApiModelProperty(value = "套餐id", example = "1", dataType = "Long")
    private Long id;

    /**
     * 套餐名称
     */
    @ApiModelProperty(value = "套餐名称", example = "套餐A", dataType = "String")
    private String name;

    /**
     * 时长
     */
    @ApiModelProperty(value = "时长", example = "一个月", dataType = "String")
    private String duration;
    /**
     * 套餐列表
     */
    @ApiModelProperty(value = "套餐列表", dataType = "list")
    @JsonSerialize(using = LongList2LongString.class)
    private List<Long> functionIdList;
}